package main

import "fmt"

func main(){
	list := []int{1,10,2,7,3,544,67,45,7,34,56}
	maopao(list)
	for _,i:=range list{
		fmt.Println(i)
	}

}

func maopao(list []int){
	for i := 0; i < len(list); i++{
		for j:= i + 1; j< len(list); j++{
			if list[i] > list[j]{
				list[i],list[j] = list[j],list[i]
			}
		}
	}
}